#ifndef		__GLOBAL_HPP__
#define		__GLOBAL_HPP__

#include <iostream>

class		G
{
	static G*	_inst;
	bool		_DEBUG;
	
	G() : _DEBUG(false) {};
public:
	
	static G*	lobal()
	{
		if (G::_inst == NULL)
			G::_inst = new G();
		return G::_inst;
	}

	void		setDebug(bool flag);
	bool		debug();

	virtual ~G() {};
};

#endif
